home *** CD-ROM | disk | FTP | other *** search
- Path: news.ios.com!usenet
- From: larrymb@gramercy.ios.com (Pacarana)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: AddIntServer + VERTB strangeness
- Date: 1 Apr 1996 22:40:17 GMT
- Organization: Internet Online Services
- Message-ID: <1550.6665T972T1664@gramercy.ios.com>
- References: <199603201423.OAA59524@poseidon.bfs.unibol.com><1011.6654T1057T1918@gramercy.ios.com> <PETERM.96Apr1101437@tui.maths.irl.cri.nz>
- NNTP-Posting-Host: ppp-53.ts-6.hck.idt.net
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
-
- >larrymb@gramercy.ios.com Pacarana writes:
- >> Well there isn't any point to using a mix of OS calls and direct hardware
- >>coding. That's the most dangerous way to do thingsand the most prone to
- >>failure.
- >On the contrary, the safest method of direct hardware programming is
- >to check for and exclusively allocate the particular hardware
- >component via OS calls, then directly access that hardware. Use
- >high-level OS calls for everything not exclusively allocated at the
- >lowest level.
- Yes, and that's actually exactly what I meant. By mixing I meant using a mix
- of OS and hardare gfx/audio/interrupt commands. Any sort of mish-mash where
- you might use actually commands that carry out things and don't just allocate
- or inform, mixed with direct hardware access is dangerous. I didn't mean to
- say that mixing AllocMem,OwnBlitter type calls with direct programming is
- dangerous.
-
- >What doesn't work is killing the entire OS (e.g, by breaking OS rules)
- >and then expecting OS calls to work.
- Certainly, I agree with this.
-
- >There is no safe way to temporarily take-over and restore the entire
- >OS.
- Well, in my terminology using Disable/Forbid/OwnBlitter/etc. then your
- direct hardware stuff is called temporarily taking over the OS. I think we
- just have our terms crossed here. I didn't mean to say that you could start
- using memory without AllocMem, take over the interuppts and copper or what not
- and then start calling OS calls at random or expect to be able to safely
- return to WB afterwards (if you did the absolute mem grab type stuff).
-
-